﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyWeb.Data;
using System.Data;

namespace MyWeb.Business
{
    public class AdvertiseService
    {
        public static AdvertiseController db = new AdvertiseController();

        #region[Advertise_Insert]
        public void Advertise_Insert(AdvertiseInfo data)
        {
            db.Advertise_Insert(data);
        }
        #endregion

        #region[Advertise_Update]
        public void Advertise_Update(AdvertiseInfo data)
        {
            db.Advertise_Update(data);
        }
        #endregion

        #region[Advertise_Delete]
        public void Advertise_Delete(string Id)
        {
            db.Advertise_Delete(Id);
        }
        #endregion

        #region[Advertise_GetByAll]
        public DataTable Advertise_GetByAll()
        {
            return db.Advertise_GetByAll();
        }
        #endregion

        #region[Advertise_GetById]
        public DataTable Advertise_GetById(string Id)
        {
            return db.Advertise_GetById(Id);
        }
        #endregion

        #region[Advertise_GetByTop]
        public DataTable Advertise_GetByTop(string Top, string Where, string Order)
        {
            return db.Advertise_GetByTop(Top, Where, Order);
        }
        #endregion
    }
}
